package cn.TcpService;

public class CoilTest {
	public static void main(String[] args) {

		CoilSchedule cos[] = new CoilSchedule[4];
		//初始化参数
		cos[0] = new CoilSchedule();
		cos[0].setDecid(3);
		cos[0].setDelay(10000);
		cos[0].setHost("192.168.1.122");
		cos[0].setSwitchid(161);
		cos[0].setWriteValue(true);
		    
		cos[1] = new CoilSchedule();
		cos[1].setDecid(4);
		cos[1].setDelay(10000);
		cos[1].setHost("192.168.1.122");
		cos[1].setSwitchid(162);
		cos[1].setWriteValue(true);
		    
		cos[2] = new CoilSchedule();
		cos[2].setDecid(3);
		cos[2].setDelay(10000);
		cos[2].setHost("192.168.1.122");
		cos[2].setSwitchid(163);
		cos[2].setWriteValue(true);
		
		cos[3] = new CoilSchedule();
		cos[3].setDecid(4);
		cos[3].setDelay(10000);
		cos[3].setHost("192.168.1.122");
		cos[3].setSwitchid(164);
		cos[3].setWriteValue(true);
        //传入参数开始运行
		CoilService cs = new CoilService(cos);
		cs.StartService();
	}
}
